<template>
  <div class="home">
    <div>
      <button class="primary-btn" type="button">测试按钮</button>
      <button class="button"><span>hover</span></button>
    </div>
  </div>
</template>

<script>
    // @ is an alias to /src

    export default {
        name: "Dashboard",
        components: {}
    };
</script>
<style scoped>
  .primary-btn {
    all: unset;
    width: 60px;
    height: 35px;
    padding: 10px 20px;
    background-color: #2196f3;
    border: none;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    color: #d7dde4;
    transition: 0.5s ease-in-out;
  }
  .primary-btn:active .primary-btn:visited {
    box-shadow: -10px 0 10px red, 10px 0 10px yellow, 0 -10px 10px blue,
    0 10px 10px green;
  }
  .primary-btn:hover {
    cursor: pointer;
    background-color: #4facf5;
  }
  .button {
    display: inline-block;
    border-radius: 4px;
    background-color: #f4511e;
    border: none;
    color: #ffffff;
    text-align: center;
    font-size: 28px;
    padding: 20px;
    width: 200px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
  }

  .button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
  }

  .button span:after {
    content: "»";
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
  }

  .button:hover span {
    padding-right: 25px;
  }

  .button:hover span:after {
    opacity: 1;
    right: 0;
  }
</style>
